﻿using System;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000428 RID: 1064
[RequireComponent(typeof(Text))]
public class TimerText : MonoBehaviour
{
	// Token: 0x06001A4C RID: 6732 RVA: 0x000A81EC File Offset: 0x000A63EC
	private void Start()
	{
		this.text = base.GetComponent<Text>();
		this.timer = 0f;
	}

	// Token: 0x06001A4D RID: 6733 RVA: 0x000A8208 File Offset: 0x000A6408
	private void Update()
	{
		this.timer += Time.deltaTime;
		this.text.text = this.timer.ToString(this.format);
	}

	// Token: 0x04001D27 RID: 7463
	private float timer;

	// Token: 0x04001D28 RID: 7464
	[SerializeField]
	private string format = "0.0";

	// Token: 0x04001D29 RID: 7465
	private Text text;
}
